<template>
  <div class="user">
    <div><button @click="goback">返回</button></div>
    <div>{{ likes }}</div>
  </div>
</template>
<script>
import { mapState } from "vuex";
export default {
  data() {
    return {
      ...mapState(["likes"]),
    };
  },
  methods: {
    goback() {
      this.$router.go(-1);
    },
  },
};
</script>
<style lang="less" scoped>
@import "@styles/index.less";
.user {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9;
  background: @bgcolor;
  color: @c;
}
</style>
